package com.example.zrq1010110087.alarmservice;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.support.annotation.IntDef;
import android.support.annotation.Nullable;
import android.util.Log;
import android.widget.Toast;

/**
 * Created by zrq1010110087 on 2017/9/24.
 */

public class AlarmService extends Service {
    @Nullable
    @Override

    public IBinder onBind(Intent intent) {

        Log.v("tag","AlarmService--> onBind");
        return null;
    }

    @Override
    public void onCreate() {
        Log.v("tag","AlarmService--> onCreate");
        Toast.makeText(this,"I am AlarmService",Toast.LENGTH_LONG).show();
        super.onCreate();
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {

        Log.v("tag","AlarmService--> onStartCommand");
        return super.onStartCommand(intent, flags, startId);
    }
}
